package demo;

public class Test {
    public static void main(String[] args) {
        System.out.println(Student.classroom);

    }
    public static void main4(String[] args) {
        Student student = new Student();
        System.out.println(student.name);
        System.out.println(student.age);
    }


    public static void main3(String[] args) {

        {
            int a =10;
            System.out.println(a);
        }

    }

    public static void main2(String[] args) {
        Student.classroom="9 class";

    }
    public static void main1(String[] args) {
        Student student1 = new Student();
        student1.name = "zhangsan";
        student1.age = 18;
        student1.classroom="9 class";

        Student student2 = new Student();
        student2.name = "lisi";
        student2.age = 20;
        student2.classroom="9 class";
    }
}